using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;

namespace ObjectModel
{
    [Serializable]
    public class OrderCollection : ItemBaseCollection 
    {
        #region ctor
        public OrderCollection()
            : base()
        { }
        public OrderCollection(IList list) : base(list) { }
        #endregion

        #region properties
        public virtual Order this[int index]
        {
            get { return coll[index] as Order; }
        }
        #endregion

        #region protected members
        public override Type ItemType
        {
            get { return typeof(Order); }
        }
        #endregion

        #region public methods
        public int LoadById(int id)
        {
            return LoadById(typeof(Order), id);
        }
        #endregion
    }
}
